<extend name="Public:mainbase" />
<block name="content">
	<script src="__PUBLIC__/datetimepicker/1.6.4/js/bootstrap-datepicker.min.js"></script>
	<script src="__PUBLIC__/datetimepicker/1.6.4/locales/bootstrap-datepicker.zh-CN.min.js"></script>
	<link rel="stylesheet" href="__PUBLIC__/datetimepicker/1.6.4/css/bootstrap-datepicker3.min.css">

	<style>
	.query{padding:25px 25px 0 25px;}
		.query .alert{float:left;padding:7px;}
		.table{width: 95%;max-width: 95%;}
	</style>
	<form action="{:U('export')}">

		<div class="row query">
			<div class="col-xs-3">
				<div class="alert " role="alert"><strong>选择时间范围：</strong></div>
				<div class="input-group date" id="datepicker">
					<input type="text" class="form-control" name="queryTime" readonly value="{$Think.get.queryTime}"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>

				</div>
			</div>
			<div class="col-xs-1">
				<button type="submit" class="btn btn-warning"><i class="glyphicon glyphicon-search"></i> 查询</button>、
			</div>
			<div class="col-xs-1">
				<?php if(I('get.queryTime')){?>
				<div class="input-group" id="topexport">
					<a href="<?php echo U('excel'); ?>?queryTime=<?php echo I('get.queryTime') ?>" target="_blank" class="btn btn-info"><i class="glyphicon glyphicon-save"></i> 导出</a>
				</div>
				<?php } ?>
			</div>

		</div>

		<div class="clearfix"></div>
	</form>
	<script type="text/javascript">
		$('#datepicker').datepicker({
			format: "yyyy-mm",
			autoclose: true,
			todayHighlight: true,
			language: "zh-CN",
			minViewMode: 1,
			todayBtn: true,
			orientation: "bottom auto"
		});
	</script>
	<!--  内容列表   -->
<table width="85%" class="table table-bordered  table-hover table-condensed "  align="center">
	<tr align="center" bgcolor="#FBFCE2" height="25">
		<td>标题</td>
		<td width="15%">发稿时间</td>
		<td width="12%">姓名</td>
		<td width="10%">手机</td>
		<td width="15%">机构</td>
	</tr>
<foreach name="art" item="val">
	<tr align="center" height="25">
		<td align="left">{$val.title}</td>
		<td>{$val.create_time}</td>
		<td>{$val.realname}</td>
		<td>{$val.mobile}</td>
		<td>{$val.jigou}</td>
	</tr>
</foreach>
</table>

</block>